package robocup.component.speechacts.coachlanguage;

import java.util.LinkedList;

public class RuleMessage {

  private LinkedList<ActivationElement> activationList = new LinkedList<ActivationElement>();

  public void addActivationElement(final ActivationElement activationElement) {

    this.activationList.add(activationElement);
  }

  public LinkedList<ActivationElement> getActivationList() {

    return this.activationList;
  }

  public void setActivationList(final LinkedList<ActivationElement> activationList) {

    this.activationList = activationList;
  }

  @Override
  public String toString() {

    final StringBuffer buf = new StringBuffer();
    buf.append("(rule ");
    for (final ActivationElement ae : this.activationList) {
      buf.append(ae.toString());
    }
    buf.append(")");
    return buf.toString();
  }

}
